def switchChannels():
	import nuke
	viewNode = nuke.activeViewer().node()
	viewNodeName = viewNode.name()
	channel = nuke.toNode(viewNodeName)['channels'].value()
	nuke.selectedNode()['channels'].setValue(channel)
	viewNode['channels'].setValue('rgba')